# $Id: PKGBUILD 175083 2013-01-13 09:45:06Z andyrtr $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=xorg-xconsole
pkgver=1.0.5
pkgrel=1
pkgdesc="Monitor system console messages with X"
arch=('i686' 'x86_64')
url="http://xorg.freedesktop.org/"
license=('custom')
depends=('libxaw' 'libxmu' 'libxt' 'libx11')
makedepends=('xorg-util-macros')
source=(http://xorg.freedesktop.org/archive/individual/app/xconsole-${pkgver}.tar.bz2)
sha256sums=('195fad7a1ca274835fc346c82acce90a0c2e9f288e85bd1a3c256dbc1c8c11e5')

build() {
  cd "${srcdir}/xconsole-${pkgver}"
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/xconsole-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}
